function popupLogin(popupWindow,action)
{

      popupWindow.html('<div class="popup"><div class="popup1"><div class="popup_title">'+action+'</div><div id="closeWindow" class="popup_close"><a href="###"><span>关闭窗口</span></a></div> </div><div class="popup2"><div class="popup_content">'+action+'，请先登录或者注册...</div><div class="popup_btns"><input type=button id=loginBtn class="btn_1" value="登录" >&nbsp;<input type=button id=registerBtn class="btn_1"  value="注册" >&nbsp;<input type="button" id=cancelCollectBtn class="btn_5" value="取消"/></div></div><div class="popup3"></div></div>');    
      var pageURL=escape(window.location.href);
      $("#registerBtn").click( function () { window.location.href= edp_domain_url + 'register/?redir='+pageURL}); 
      $("#loginBtn").click( function () { window.location.href= edp_domain_url + 'login/?redir='+pageURL});  
                
      $("#cancelCollectBtn").click(function() {
	      $.unblockUI();
	  });
	   
	  $("#closeWindow>a").click(function() {
	      $.unblockUI();
	  });
	   
}